package com.example.bbs.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.bbs.entity.Article;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author jiajiazi
 * @version 1.0
 * @date 2021/5/5 18:59
 */
@Repository
public interface ArticleMapper extends BaseMapper<Article> {

    List<Article> selectListWithName();

    Article selectWithNameById(int id);

    List<Article> selectArtsByTagId(int id);

}
